package com.lightheart.sphr.xiaobinggan.shadow;


import android.content.Intent;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.lightheart.sphr.xiaobinggan.R;
import com.lightheart.sphr.xiaobinggan.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * https://juejin.im/post/6891573246114660365
 * github:https://github.com/lihangleo2/ShadowLayout/tree/3.0.3
 */

public class ShadowActivity extends BaseActivity implements View.OnClickListener {

    @BindView(R.id.common_toolbar)
    Toolbar mToolbar;
    @BindView(R.id.bt_sub)
    Button mRegiste;
    @BindView(R.id.common_toolbar_title_tv)
    TextView mTitleTv;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_shadow;
    }

    @Override
    protected void initInjector() {

    }

    @Override
    protected void initView() {
        initToolbar(mToolbar, mTitleTv, mRegiste, R.string.yin, false, R.string.register);

    }

    @OnClick({R.id.ShadowLayout_shadow, R.id.ShadowLayout_shape})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.ShadowLayout_shadow:
                startActivity(new Intent(ShadowActivity.this, ShadowTwoActivity.class));
                break;
            case R.id.ShadowLayout_shape:
                startActivity(new Intent(ShadowActivity.this, ShapeActivity.class));
                break;
//            case R.id.ShadowLayout_wiki:
//                break;
            default:
                break;
        }
    }
}